#ifndef ACCOUNT_H
#define ACCOUNT_H

class Account
{
public:
   Account( double ); // constructor initializes balance
   virtual void credit( double ); // add an amount to the account balance
   virtual bool debit( double ); // subtract an amount from the account balance
   double getBalance() const; // return the account balance

protected:
   void setBalance (double);

private:
   double balance; // data member that stores the balance
}; // end class Account

#endif /* end of ACCOUNT_H */
